home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
-
- char *first;
- char *second;
- int check = 5;
-
- int main(int argc, char *argv[])
- {
- first = argv[0];
-
- if (argc > 1)
- {
- second = argv[1];
- }
- else
- {
- second = "<Not Given>";
- }
-
- printf("You named me \"%s\", and my first parameter is \"%s\"\n",
- first, second);
-
- if (check == 5)
- {
- printf("Everything checks O.K.!\n");
- }
- else
- {
- printf("Something's wrong! 'check' = %d\n", check);
- }
-
- check = *second;
- }
-